#include <iostream>
using namespace std;

class People
{
public:
    People(char *name, int age):m_name(name), m_age(age) {}

protected:
    char *m_name;
    int m_age;

private:
    int m_id;

};

class Student:public People
{
public:
    // People(name, age) 就是调用基类的构造函数
    Student(char *name, int age, int score):People(name, age), m_score(score) {}
    void display()
    {
        cout<<m_name<<"的年龄是："<<m_age<<", 成绩是"<<m_score<<"。 "<<endl;
        // cout<<m_id<<endl;私有无法继承
    }

private:
    float m_score;
};
